package com.center.biz.impl;

import com.center.api.model.EduEmailsendHistoryWithBLOBs;
import com.center.api.remote.RemoteEduEmailsendHistoryService;
import com.center.biz.dao.EduEmailsendHistoryMapper;
import org.apache.dubbo.config.annotation.Service;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteEduEmailsendHistoryService.class)
public class RemoteEduEmailsendHistoryServiceImpl implements RemoteEduEmailsendHistoryService {


    private EduEmailsendHistoryMapper eduEmailsendHistoryMapper;

    @Override
    public int save(EduEmailsendHistoryWithBLOBs eduEmailsendHistoryWithBLOBs) {
        return eduEmailsendHistoryMapper.insertSelective(eduEmailsendHistoryWithBLOBs);
    }

    @Override
    public int update(EduEmailsendHistoryWithBLOBs eduEmailsendHistoryWithBLOBs) {
        return eduEmailsendHistoryMapper.updateByPrimaryKeySelective(eduEmailsendHistoryWithBLOBs);
    }

    @Override
    public int delete(int id) {
        return eduEmailsendHistoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<EduEmailsendHistoryWithBLOBs> select(EduEmailsendHistoryWithBLOBs eduEmailsendHistoryWithBLOBs) {
        return null;
    }

    @Override
    public EduEmailsendHistoryWithBLOBs getById(int id) {
        return  eduEmailsendHistoryMapper.selectByPrimaryKey(id);
    }
}
